package com.xinzhi.savingpot.configure;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class ALipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

    // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
    public static String app_id = "2016110300789208";

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCVcF+PBFUnZoaREsGaGFij2wVrp0Ckgb8vixA+WTwaUmdJFBAVfF6SCqqCKJaODRPEbkifyHVIbBv286RUIFPFTdYJn5KPbtbORRERiaxBK1bEI92ifZ9K4RHFd9lm7mlvsAog9W/BoaulzVlfY41Vf8XTvL/DKYIUdlxXHtSxPuOKTHLox+EzawiGHEFqXFWEFwhYUWRfhcOaYSS3vx6+ZvolZHmyMa2p8FTQwGaRCr6CfTuXZojrn+EGruHFIEf/cB6c5BE5s4fzt/uwQ8pbR/+L3Y3y/n0DtY5v2cS2rSZfI+zAHHPBterfVZMb9hBMiWNmsY2AukgFmua6KuBtAgMBAAECggEAPbrtvmZLxrrTW5oj30OvWgBffNjaGxp9n2YSj67M5RKlF8rx2e5GIo3FYX7isks0ny/vUBG+YOxHoPuEJjw0XoyInfEM2bMviIV/R39XaJQ+g0dNhpHd+1B9xtR7OcnCRCC0DmlUgOgHv7XT9VNqTqc5UP3nOPcshMdf3Z0evxhWHj4SaR3ovBZGQs4s5ya+mf9XtUk34Hq/g45qJhS+T/51LSN3QH+ZJlu5N7IHRtFEUXwGhJv2cBf0LWmO7Nj7rIQvp19VrATGmIWne9lbZVpvUURQXz2a5ndwHazo76XP2E6Ry31C8IrzNYDYPLP/fG5tvoAe12MYK5909Ap4AQKBgQDyFDdTY+2qe6DhwW0NmiIlIRlkPKzlb0POQCYGRKAAwOuBlDHBO5gxvMWTOqr/ZKUT+PUaSAhRIPt7+b3INCqAMthU6Ta+pb9ul++S/WbSQ5b+bUYGFCb/twqT8OGFbrDO+YQmHFG7VKV+1HGkr6Nfo0U1P1qqEmdIY1nDnrrehQKBgQCeCFmn7H1y/gCY6gN6uQs7RfXommxj6lUFtXwMZwcrj/iy3AKQyP5PY0lSpp7LGWdgX8UHR8eR2j3F1PtsRFPPAnUGak5VfyBnwfIq9DeHiZC7tp1DwHMU3SMzL2n2YxSN4gIGi3EDpJx9ls4DoNwbUuTD0ZKGnOgIkpkwPLqiyQKBgQCIeVMzhQuQ6D+r5lMnrvR/ACkDdJ14f4C3fzywnfGiWyCqHbTrHkDQEX9FYHbUopXaK6lqlp9xtWlx3Drc6mPngEKrpArD8kd4/tkGgit8cLRoXYxzktrloPiqrMtHYT72gH66yY5eUPs4BGbJFGfDXBWBTmU7qkJl8fTCLvNkzQKBgFCPjyzkiPsS8zkAqq9oH4qi2n4uIq04qwkTAF7OMsCJT03WjFREsifERH+mwvJkS+e8SpOwitMWf0EXlugVWOgBp6iSjsZU3S8nlo1BHAGzJh4bNMZyF/h91tDkDc91qOe/XCr78KvbwY7gTrtYyHwBYO9WKa0H1d1w5jjJ7JbJAoGAF40aPLNFbQCZYEKj39XDzCIZmKFineehxfc++2Sx6h3TcOjduq3gpa7CbThCaOU+ULePQzRt+zIc8trj8wJyeTLwkv0lTNjjmvLfBNhaIkq0Ygx/5MXibS5pAvvkde6bmol67Zk/ix12ETrzf+TPgbEil4CQj16LtkIEGZHIy/g=";

    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqz+H+d8hjxo7PlH/143tHNV6B97anM0JWg8kP0vGp/NMQBteOYVjW2uuUsa59aJYsbUfYfyMoDTVnzbUf+kDCswwK4vzPqwbbeuBzeAodgaS5rnE5SnjKzhQ1VRSetFOr/6LQBDPdDIH9BfWZD8HV72j29W8RlvM0N0B5V0r/rPts0Q+c3oV9/Qi/vGwFK33qq31z4W9gWLFEBbbWjViksMB+rFlflwGY9aSMdwV6SN8UpR84HsbU3E+0M8Kx/kbKPg6W0wVIqc/f6NQjH/npajftVh+gRdeO0eq+4IaKRaxaWiOM3DcU5JM3ggg8JvvljPNBh3PKIOtVI94BmgRUwIDAQAB";

    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://35v7y60739.picp.vip";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://35v7y60739.picp.vip";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

    // 支付宝网关
//    public static String log_path = "C:\\";


//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

    /**
     * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
     * @param sWord 要写入日志里的文本内容
     */
//    public static void logResult(String sWord) {
//        FileWriter writer = null;
//        try {
//            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
//            writer.write(sWord);
//        } catch (Exception e) {
//            e.printStackTrace();
//        } finally {
//            if (writer != null) {
//                try {
//                    writer.close();
//                } catch (IOException e) {
//                    e.printStackTrace();
//                }
//            }
//        }
//    }
}